<?php
/*
Template Name:z3 简
Description:简洁清爽的单栏CSS3主题
Version:1.1
Author:Sogei
Author Url:http://zld.me
Sidebar Amount:0
ForEmlog:4.2.1
*/
if(!defined('EMLOG_ROOT')) {exit('error!');}
require_once View::getView('module');
if(function_exists('emLoadJQuery')) {
    emLoadJQuery();
}
?>
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title><?php echo $blogtitle; ?></title>
<meta name="keywords" content="<?php echo $site_key; ?>" />
<meta name="description" content="<?php echo $description; ?>" />
<meta name="generator" content="Emlog" />
<meta name="author" content="Sogei" />
<link rel="EditURI" type="application/rsd+xml" title="RSD" href="<?php echo BLOG_URL; ?>xmlrpc.php?rsd" />
<link rel="wlwmanifest" type="application/wlwmanifest+xml" href="<?php echo BLOG_URL; ?>wlwmanifest.xml" />
<link rel="alternate" type="application/rss+xml" title="RSS"  href="<?php echo BLOG_URL; ?>rss.php" />
<link rel="stylesheet" href="<?php echo TEMPLATE_URL; ?>style.css"/>
<?php if($curpage==CURPAGE_TW) { ?>
<link rel="stylesheet" href="<?php echo TEMPLATE_URL; ?>t.css" />
<?php } ?>
<link rel="stylesheet" href="<?php echo TEMPLATE_URL; ?>phZoom/phzoom.css" />
<?php doAction('index_head'); ?>

<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body id="home">
<div id="top">
  <header>
    <div class="headercontent">
      <h1><a href="<?php echo BLOG_URL; ?>"><?php echo $blogname; ?></a><span><?php echo $bloginfo; ?></span></h1>
      <form name="keyform" method="get" id="searchform" action="<?php echo BLOG_URL; ?>index.php">
        <input type="text" class="s" name="keyword" placeholder="Search" x-webkit-speech>
      </form>
    </div>
  </header>
</div>
<nav>
  <ul>
    <li><a href="<?php echo BLOG_URL; ?>" title="博客首页">首页</a></li>
	<?php if($istwitter == 'y'):?>
	<li class="<?php echo $curpage == CURPAGE_TW ? 'current' : 'common';?>"><a href="<?php echo BLOG_URL; ?>t/"><?php echo Option::get('twnavi');?></a></li>
	<?php endif;?>
    <?php 
	foreach ($navibar as $key => $val):
	if ($val['hide'] == 'y'){continue;}
	if (empty($val['url'])){$val['url'] = Url::log($key);}
	?>
    <li><a href="<?php echo $val['url']; ?>" target="<?php echo $val['is_blank']; ?>"><?php echo $val['title']; ?></a></li>
    <?php endforeach;?>
    <li id="go-top"><a href="#">顶部</a></li>
  </ul>
</nav>
